.upload-page .page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
    }
    .upload-page .page-header h1 {
      margin: 0;
      font-size: 1.8em;
      color: #34495e;
    }
    .upload-page .page-header h1 i {
      margin-right: 10px;
      color: #3498db; 
    }
    .upload-page .page-header button i {
      margin-right: 5px;
    }

    .upload-settings-area {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-bottom: 30px;
    }

    .upload-area {
      /* Takes full width if alone, or part of flex layout */
    }

    .upload-dropzone {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 30px; /* Slightly reduced padding */
      border: 2px dashed #007bff;
      border-radius: 8px;
      background-color: #f8f9fa;
      color: #007bff;
      cursor: pointer;
      text-align: center;
      transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    .upload-dropzone:hover {
      background-color: #e9ecef;
      border-color: #0056b3;
    }
    .upload-dropzone i.fa-file-medical { /* Specific icon styling */
      margin-bottom: 15px;
      color: #007bff;
    }
    .upload-dropzone p {
      margin: 0 0 5px 0;
      font-size: 1.1em; /* Slightly reduced */
      font-weight: bold;
    }
    .upload-dropzone span {
      font-size: 0.85em; /* Slightly reduced */
      color: #6c757d;
    }

    .upload-options {
      display: flex;
      gap: 25px; /* Increased gap */
      padding: 15px 20px;
      background-color: #f0f4f8; /* Lighter, distinct background */
      border-radius: 8px;
      border: 1px solid #dfe6ec;
    }

    .option-item {
      display: flex;
      align-items: center;
    }

    .option-item input[type="checkbox"] {
      margin-right: 10px;
      width: 18px;
      height: 18px;
      cursor: pointer;
      accent-color: #007bff; /* Modern way to color checkbox */
    }
    .option-item input[type="checkbox"]:focus {
      outline: 2px solid #007bff80;
      outline-offset: 2px;
    }

    .option-item label {
      font-size: 0.95em;
      color: #2c3e50; /* Darker text for better readability */
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .option-item label i {
      color: #007bff; /* Icon color matching theme */
    }


    .file-list-section h3 {
      font-size: 1.3em;
      color: #34495e;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;
    }

    .file-list {
      list-style-type: none;
      padding: 0;
      margin-bottom: 20px;
    }

    .file-item {
      display: flex;
      align-items: center;
      padding: 10px 15px; /* Slightly reduced padding */
      background-color: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      margin-bottom: 10px;
      font-size: 0.95em;
      position: relative; /* For absolute positioning of remove button */
    }
    .file-item.status-uploading { border-left: 4px solid #ffc107; }
    .file-item.status-success { border-left: 4px solid #28a745; }
    .file-item.status-error { border-left: 4px solid #dc3545; }
    .file-item.status-pending { border-left: 4px solid #6c757d; }


    .file-name {
      flex-grow: 1;
      color: #333;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding-right: 10px; /* Space for remove button if it overlaps */
    }
    .file-name i {
      margin-right: 8px;
      color: #6c757d;
    }
    .file-size {
      margin-left: 10px; /* Reduced margin */
      margin-right: 10px; /* Reduced margin */
      color: #777;
      font-size: 0.9em;
      white-space: nowrap;
    }
    .progress-bar-container {
      width: 120px; /* Reduced width */
      height: 8px;  /* Reduced height */
      background-color: #e9ecef;
      border-radius: 4px; /* Adjusted radius */
      overflow: hidden;
      margin-right: 10px; /* Reduced margin */
    }
    .progress-bar {
      height: 100%;
      background-color: #007bff;
      transition: width 0.1s linear;
    }
    .file-item.status-success .progress-bar { background-color: #28a745; }
    .file-item.status-error .progress-bar { background-color: #dc3545; }


    .file-status {
      width: 80px; /* Reduced width */
      text-align: right;
      font-weight: bold;
      font-size: 0.9em;
      white-space: nowrap;
    }
    .status-icon { margin-right: 5px; }
    .status-icon.pending { color: #6c757d; }
    .status-icon.uploading { color: #ffc107; }
    .status-icon.success { color: #28a745; }
    .status-icon.error { color: #dc3545; }

    .remove-file-btn {
      background: none;
      border: none;
      color: #95a5a6;
      cursor: pointer;
      font-size: 1.1em;
      padding: 0 5px;
      margin-left: 10px;
      line-height: 1; /* Ensure icon is centered */
    }
    .remove-file-btn:hover {
      color: #e74c3c;
    }


    .upload-btn {
      padding: 12px 25px;
      font-size: 1.1em;
      background-color: #28a745;
    }
    .upload-btn:hover {
      background-color: #218838;
    }
    .upload-btn:disabled {
      background-color: #aaa;
      cursor: not-allowed;
    }
    .upload-btn i {
      margin-right: 8px;
    }
